import BaseCURDV2Api from '@/framework/infra/base/BaseCURDV2Api'

class TravelStrategyApi extends BaseCURDV2Api {
  constructor() {
    super('mj/street')
  }
  detail(id) {
    return this.getSelf('/api/mj/street/detail', { id })
  }
  get(urlName, params){
    return this.postGet(urlName, params)
  }
}

class TravelStrategyDayApi extends BaseCURDV2Api {
  constructor() {
    super('/mj/street/day')
  }
}

class TravelStrategyItemApi extends BaseCURDV2Api {
  constructor() {
    super('/mj/street/item')
  }
}

export const travelStrategyApi = new TravelStrategyApi()

export const travelStrategyDayApi = new TravelStrategyDayApi()
export const travelStrategyItemApi = new TravelStrategyItemApi()

